menu-cache-1.1.0^20240821git83d90343-1.fc42

List of Findings

Error: COMPILER_WARNING (CWE-563): [#def1]
menu-cache-1.1.0_20240821git83d90343-build/menu-cache-1.1.0-20240821git83d90343/menu-cache/menu-cache-daemon/menu-cached.c: scope_hint: In function ‘on_client_closed’
menu-cache-1.1.0_20240821git83d90343-build/menu-cache-1.1.0-20240821git83d90343/menu-cache/menu-cache-daemon/menu-cached.c:602:17: warning[-Wunused-variable]: unused variable ‘ch’
#  602 |     GIOChannel *ch = client_io->channel;
#      |                 ^~
#  600|       Cache* cache;
#  601|       GSList *l;
#  602|->     GIOChannel *ch = client_io->channel;
#  603|   
#  604|       DEBUG("client closed: %p", ch);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
menu-cache-1.1.0_20240821git83d90343-build/menu-cache-1.1.0-20240821git83d90343/menu-cache/menu-cache-daemon/menu-cached.c: scope_hint: In function ‘on_client_data_in’
menu-cache-1.1.0_20240821git83d90343-build/menu-cache-1.1.0-20240821git83d90343/menu-cache/menu-cache-daemon/menu-cached.c:689:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sep’
#  687|           {
#  688|               sep = strchr(pline, '\t');
#  689|->             *sep = '\0';
#  690|               menu_name = pline;
#  691|               pline = sep + 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
menu-cache-1.1.0_20240821git83d90343-build/menu-cache-1.1.0-20240821git83d90343/menu-cache/menu-cache-daemon/menu-cached.c:694:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sep’
#  692|   
#  693|               sep = strchr(pline, '\t');
#  694|->             *sep = '\0';
#  695|               lang_name = pline;
#  696|               pline = sep + 1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
menu-cache-1.1.0_20240821git83d90343-build/menu-cache-1.1.0-20240821git83d90343/menu-cache/menu-cache-daemon/menu-cached.c: scope_hint: In function ‘on_new_conn_incoming’
menu-cache-1.1.0_20240821git83d90343-build/menu-cache-1.1.0-20240821git83d90343/menu-cache/menu-cache-daemon/menu-cached.c:819:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘g_io_channel_unix_get_fd(ch)’
#  817|       client_addrlen = sizeof(client_addr);
#  818|       client = accept(server, &client_addr, &client_addrlen);
#  819|->     if( client == -1 )
#  820|       {
#  821|           DEBUG("accept error");

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-176.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namemenu-cache-1.1.0^20240821git83d90343-1.fc42
store-results-to/tmp/tmp2y2d3j78/menu-cache-1.1.0^20240821git83d90343-1.fc42.tar.xz
time-created2024-11-13 02:00:36
time-finished2024-11-13 02:02:04
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp2y2d3j78/menu-cache-1.1.0^20240821git83d90343-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp2y2d3j78/menu-cache-1.1.0^20240821git83d90343-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9